﻿<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE HTML>
<html>
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>大学生选课系统左侧导航页面</title>

    <%@ include file="base.jsp" %>

    <link rel="stylesheet" type="text/css" href="css/public.css">
    <script src="js/jquery.min.js"></script>
    <script src="js/public.js"></script>
</head>

<body id="bg">
<!-- 左边节点 -->
<div class="container">
    <div class="leftsidebar_box">
        <a href="main.jsp" target="main">
            <div class="line">
                <img class="icon1" src="images/coin01.png"/>
                <img class="icon2" src="images/coin02.png"/>&nbsp;&nbsp;首页
            </div>
        </a>
        <c:if test="${!empty auser || !empty tteacher || !empty sstudent}">
            <!--学院管理-->
            <c:if test="${sessionScope.role == 'admin'}">
                <dl class="system_log">
                    <dt>
                        <img class="icon1" src="images/coin15.png"/>
                        <img class="icon2" src="images/coin16.png"/>
                        学院管理
                        <img class="icon3" src="images/coin19.png"/>
                        <img class="icon4" src="images/coin20.png"/>
                    </dt>
                    <dd>
                        <img class="coin11" src="images/coin111.png"/>
                        <img class="coin22" src="images/coin222.png"/>
                        <a href="admin/collegeController?fun=index" target="main" class="cks">学院信息管理</a>
                        <img class="icon5" src="images/coin21.png"/>
                    </dd>
                </dl>
            </c:if>
            <c:if test="${!empty auser || !empty tteacher || !empty sstudent}">
                <!--课程管理-->
                <dl class="system_log">
                    <dt>
                        <img class="icon1" src="images/coin09.png"/>
                        <img class="icon2" src="images/coin10.png"/>
                        课程管理
                        <img class="icon3" src="images/coin19.png"/>
                        <img class="icon4" src="images/coin20.png"/>
                    </dt>
                    <c:if test="${sessionScope.role == 'admin'}">
                        <dd>
                            <img class="coin11" src="images/coin111.png"/>
                            <img class="coin22" src="images/coin222.png"/>
                            <a href="admin/subjectController?fun=index" target="main" class="cks">课程信息管理</a>
                            <img class="icon5" src="images/coin21.png"/>
                        </dd>
                    </c:if>
                    <c:if test="${sessionScope.role == 'teacher'}">
                        <dd>
                            <img class="coin11" src="images/coin111.png"/>
                            <img class="coin22" src="images/coin222.png"/>
                            <a href="teacher/teacherOwnController?fun=teaCourse" target="main" class="cks">教授课程管理</a>
                            <img class="icon5" src="images/coin21.png"/>
                        </dd>
                    </c:if>
                    <c:if test="${sessionScope.role == 'student'}">
                        <dd>
                            <img class="coin11" src="images/coin111.png"/>
                            <img class="coin22" src="images/coin222.png"/>
                            <a href="student/studentOwnController?fun=stuCourse" target="main" class="cks">学生选课</a>
                            <img class="icon5" src="images/coin21.png"/>
                        </dd>
                    </c:if>
                    <c:if test="${sessionScope.role == 'student'}">
                        <dd>
                            <img class="coin11" src="images/coin111.png"/>
                            <img class="coin22" src="images/coin222.png"/>
                            <a href="student/stuTeaController?fun=index" target="main" class="cks">选择教师</a>
                            <img class="icon5" src="images/coin21.png"/>
                        </dd>
                    </c:if>
                </dl>
            </c:if>
            <!--学生管理-->
            <c:if test="${sessionScope.role == 'admin' || sessionScope.role == 'teacher'}">
                <dl class="system_log">
                    <dt>
                        <img class="icon1" src="images/coin07.png"/>
                        <img class="icon2" src="images/coin08.png"/>
                        学生管理
                        <img class="icon3" src="images/coin19.png"/>
                        <img class="icon4" src="images/coin20.png"/>
                    </dt>
                    <c:if test="${sessionScope.role == 'admin'}">
                        <dd>
                            <img class="coin11" src="images/coin111.png"/>
                            <img class="coin22" src="images/coin222.png"/>
                            <a href="admin/studentController?fun=index" target="main" class="cks">学生信息管理</a>
                            <img class="icon5" src="images/coin21.png"/>
                        </dd>
                    </c:if>
                    <c:if test="${sessionScope.role == 'teacher'}">
                        <dd>
                            <img class="coin11" src="images/coin111.png"/>
                            <img class="coin22" src="images/coin222.png"/>
                            <a href="teacher/teacherOwnController?fun=ownstu" target="main" class="cks">查看本班学生</a>
                            <img class="icon5" src="images/coin21.png"/>
                        </dd>
                    </c:if>
                </dl>
            </c:if>
            <%--专业管理--%>
            <c:if test="${sessionScope.role == 'admin'}">
                <dl class="system_log">
                    <dt>
                        <img class="icon1" src="images/coin05.png"/>
                        <img class="icon2" src="images/coin06.png"/>
                        专业管理
                        <img class="icon3" src="images/coin19.png"/>
                        <img class="icon4" src="images/coin20.png"/>
                    </dt>
                    <dd>
                        <img class="coin11" src="images/coin111.png"/>
                        <img class="coin22" src="images/coin222.png"/>
                        <a class="cks" href="admin/zhuanyeController?fun=index" target="main">专业信息管理</a>
                        <img class="icon5" src="images/coin21.png"/>
                    </dd>
                </dl>
            </c:if>
            <%--教师管理--%>
            <c:if test="${sessionScope.role == 'admin'}">
                <dl class="system_log">
                    <dt>
                        <img class="icon1" src="images/coin03.png"/>
                        <img class="icon2" src="images/coin04.png"/>
                        教师管理
                        <img class="icon3" src="images/coin19.png"/>
                        <img class="icon4" src="images/coin20.png"/>
                    </dt>
                    <dd>
                        <img class="coin11" src="images/coin111.png"/>
                        <img class="coin22" src="images/coin222.png"/>
                        <a href="admin/teacherController?fun=index" target="main" class="cks">教师信息管理</a>
                        <img class="icon5" src="images/coin21.png"/>
                    </dd>
                </dl>
            </c:if>
            <c:if test="${!empty auser || !empty tteacher || !empty sstudent}">
                <%--个人中心--%>
                <dl class="system_log">
                    <dt>
                        <img class="icon1" src="images/coinL1.png"/>
                        <img class="icon2" src="images/coinL2.png"/>
                        个人中心
                        <img class="icon3" src="images/coin19.png"/>
                        <img class="icon4" src="images/coin20.png"/>
                    </dt>
                    <dd>
                        <img class="coin11" src="images/coin111.png"/>
                        <img class="coin22" src="images/coin222.png"/>
                        <c:if test="${sessionScope.role == 'admin'}">
                            <a href="admin_center.jsp" target="main" class="cks">个人信息管理</a>
                        </c:if>
                        <c:if test="${sessionScope.role == 'teacher'}">
                            <a href="teacher/teacherOwnController?fun=centerPage" target="main" class="cks">个人信息管理</a>
                        </c:if>
                        <c:if test="${sessionScope.role == 'student'}">
                            <a href="student/studentOwnController?fun=centerPage" target="main" class="cks">个人信息管理</a>
                        </c:if>
                        <img class="icon5" src="images/coin21.png"/>
                    </dd>
                </dl>
            </c:if>
        </c:if>
    </div>
</div>
</body>

</html>